package com.lavender.aop.spring.aop;

import com.lavender.aop.spring.aop.service.impl.DoSthServiceImpl;
import com.lavender.aop.spring.aop.service.impl.UserServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

@Component
public class TestCommand1 implements CommandLineRunner {

//    @Autowired
//    private UserService userService;
//
//    @Autowired
//    private DoSthService doSthService;

    @Autowired
    private UserServiceImpl userService;

    @Autowired
    private DoSthServiceImpl doSthService;

    @Override
    public void run(String... args) {
        System.out.println("userService : " + userService.getClass().getName());
        System.out.println("doSthService :" + doSthService.getClass().getName());
    }

}
